<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateUserstoryTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            
            <table>
                <tr>
                    <td>
                        <h:panelGroup id="usycrmessagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateUserstoryLabel_productbacklog}" for="productbacklog" />
                    <h:selectOneMenu id="productbacklog" value="#{userstoryController.selected.productbacklog}" title="#{bundle.CreateUserstoryTitle_productbacklog}" >
                        <f:selectItems value="#{productbacklogController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    
                    <h:outputLabel value="#{bundle.CreateUserstoryLabel_storybezeichnung}" for="storybezeichnung" />
                    <h:inputText id="storybezeichnung" value="#{userstoryController.selected.storybezeichnung}" title="#{bundle.CreateUserstoryTitle_storybezeichnung}" required="true" requiredMessage="#{bundle.CreateUserstoryRequiredMessage_storybezeichnung}"/>
                    <h:outputLabel value="#{bundle.CreateUserstoryLabel_storybeschreibung}" for="storybeschreibung" />
                    <h:inputText id="storybeschreibung" value="#{userstoryController.selected.storybeschreibung}" title="#{bundle.CreateUserstoryTitle_storybeschreibung}" />
                    <h:outputLabel value="#{bundle.CreateUserstoryLabel_prioritaet}" for="prioritaet" />
                    <h:inputText id="prioritaet" value="#{userstoryController.selected.prioritaet}" title="#{bundle.CreateUserstoryTitle_prioritaet}" required="true" requiredMessage="#{bundle.CreateUserstoryRequiredMessage_prioritaet}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{userstoryController.create}" value="#{bundle.CreateUserstorySaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{userstoryController.prepareList}" value="#{bundle.CreateUserstoryShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateUserstoryIndexLink}" action="/index" immediate="true" />
            </h:form>
                    </td>
                    <td>
                        <ui:include src="Edit.xhtml"/>
                    </td>
                </tr>
            </table>
            <ui:include src="List.xhtml"/>
            
        </ui:define>
        
    </ui:composition>

</html>
